<?php
/* Smarty version 3.1.30-dev/18, created on 2016-02-18 10:34:01
  from "D:\phpStudy\WWW\wengdo\templates\user_reg.tpl" */

if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.30-dev/18',
  'unifunc' => 'content_56c52d9910c700_63220025',
  'file_dependency' => 
  array (
    'd120decf05e3e2e1e7b7afa1937ee34087c519db' => 
    array (
      0 => 'D:\\phpStudy\\WWW\\wengdo\\templates\\user_reg.tpl',
      1 => 1452690164,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:header.tpl' => 1,
    'file:footer.tpl' => 1,
  ),
),false)) {
function content_56c52d9910c700_63220025 ($_smarty_tpl) {
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文豆集团-IT服务企业</title>
    <link rel="stylesheet" href="css/user_reg.css">
    <link rel="stylesheet" href="css/Common.css">
</head>
<body>
<div class="container">
    <?php $_smarty_tpl->_subTemplateRender("file:header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

    <div class="main">
    <img src="../images/cases_banner.jpg" alt="">
    <p class="main_head_nav">
        <<<a href="index.php">返回首页</a>
    </p>
    <div class="main_us">
        <div class="user_login">
            <p class="title"><a href="user_reg.php">用户注册</a></p>

            <form action="user_reg.php" method="post">
                <ul>
                    <li>
                        <p>账号</p>
                        <input class="text" type="text" name="username" placeholder="用户名" id="username">
                        <span id="user_check"></span>
                    </li>
                    <li>
                        <p>设置密码</p>
                        <input class="text" type="password" name="password" placeholder="密码">
                    </li>
                    <li>
                        <p>验证码</p>
                        <input class="text" type="text" name="imgcode" >
                        <img id="imgcode" src="http://localhost/wengdo/include/codeimg.php" alt="">
                    </li>
                    <li>
                        <input class="submit" type="submit" name="dosubmit" value="注册">
                    </li>
                </ul>
            </form>
        </div>
        <div class="friendly_link">
            还没有账号？<br>
            <a href="user_login.php">
                <input type="button" name="zhuce" value="立即登录">
            </a>
        </div>
    </div>
     <?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

</div>
</body>
</html>
<?php echo '<script'; ?>
 type="text/javascript" src="js/jquery-1.11.3.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
    $("#imgcode").click(function(){
        $("#imgcode").attr("src","http://localhost/wengdo/include/codeimg.php?url=" + Math.random());
    });
    $("#username").blur(function(){
        var username = $(this).val();
        $.ajax({
            type:"GET",
            url:"user_check.php?username="+username,
            success:function(data){
                if(data=="用户名已存在"){
                    $("#user_check").html(data);
                    $("#user_check").css("display","inline");
                   return false;
                }else{
                    $("#user_check").css("display","none");
                }
            }

        });

    });

    $("#username").focus(function(){
        $("#user_check").css("display","none");
    });
<?php echo '</script'; ?>
><?php }
}
